package com.leetcode.LC;

public class LC168 {
    public String convertToTitle(int n) {

        String abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        String rs = "";
        while (n != 0) {
            n--;
            rs = abc.charAt((n % 26)) + rs;
            n = n / 26;
        }
        return rs;
    }

    public static void main(String[] args) {
        System.out.println(new LC168().convertToTitle(5000));

        System.out.println(1 % 26);
    }
}
